import {ref,reactive,onMounted} from 'vue'
export default function(){
   
    const yearRange=ref([])//动态生成年份范围
    const generateYearRange=()=>{
        const currentYear = new Date().getFullYear();
        for (let i = currentYear; i >= currentYear - 10; i--) {
            yearRange.value.push(i);
        }
    }

     onMounted(async () => {
        generateYearRange()
    }) 
    return{yearRange}
}